package com.village.friend.sms;

import com.alibaba.fastjson.JSONObject;

public class SmsResultBean {

    private boolean success;
    private String msg;

    public static SmsResultBean failt(String msg){
        return new SmsResultBean(false,msg);
    }

    public static String failtString(String msg){
        SmsResultBean failt = failt(msg);
        return JSONObject.toJSONString(failt);
    }

    public SmsResultBean(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
